package com.mysher.devlib.uvc;

public class CameraAttrInfo {

    private int id;
    private String name;
    private boolean isSupport;
    private int min;
    private int max;
    private int value;
    private int defVal;
    private int step = 1;
    private boolean supportAuto;
    private int autoState;

    public CameraAttrInfo() {

    }

    public CameraAttrInfo(int id, String name, boolean isSupport, int value, int defVal) {
        this.id = id;
        this.name = name;
        this.isSupport = isSupport;
        this.value = value;
        this.defVal = defVal;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSupport() {
        return isSupport;
    }

    public void setSupport(boolean support) {
        isSupport = support;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }

    public boolean isSupportAuto() {
        return supportAuto;
    }

    public void setSupportAuto(boolean supportAuto) {
        this.supportAuto = supportAuto;
    }

    public int getAutoState() {
        return autoState;
    }

    public void setAutoState(int autoState) {
        this.autoState = autoState;
    }

    public int getDefVal() {
        return defVal;
    }

    public void setDefVal(int defVal) {
        this.defVal = defVal;
    }

    private static String[] names = {"亮度", "对比度", "清晰度", "饱和度", "色调", "伽玛"};

    public static String AttrIndexToName(int index) {
        return names[index];
    }
}
